﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CML.Data
{
	public class FileResult
	{
		public string Id = Guid.NewGuid().ToString();
		public string Path;
		public string Action;
		public string OldContent;
		public string NewContent;
		public string ErrorCode;
		public string ErrorDescription;

		public void SetErrorCode(string code, string message = "")
		{
			ErrorCode = code;
			ErrorDescription = Data.ErrorCode.GetDescription(code) + message;
		}
	}
}
